<template>
    <view class="main">
        
		<view class="top">
			我的团队 {{list.length}}人
		</view>
		<view class="user xflex-x xbb8D" v-for="(item,index) in list" :key="index">
			<image class="avatar" :src="item.avatar" mode=""></image>
			<view class="info xflex-y-around">
				<view class="xflex-x">
					<view class="name">
						{{item.username}}
					</view>
					<view class="phone">
						<!-- 151*****6873 -->
					</view>
				</view>
				<view class="time">
					注册时间：{{item.createtime}}
				</view>
			</view>
		</view>
    </view>
</template>

<script setup>
	import {userTeam} from "@/network/home.js"
import {
    onReachBottom,
    onShow,
    onLoad
} from '@dcloudio/uni-app';
import {reactive, ref} from "vue"
let test = ref("测试")

let order = reactive({
	page:1
})

let list = ref([])

const getuserTeam = () =>{
	userTeam({
		page_no:order.page,
		page_size:10
	}).then(res=>{
		console.log("1111111");
		list.value = res.data.lists
	})
}


onLoad(()=>{
	getuserTeam()
})


</script>

<style lang="scss">
	page {
		background-color: #fff;
	}
	.main {
		padding: 50rpx 30rpx;
		box-sizing: border-box;
	}
	.top {
		font-size: 30rpx;
		font-weight: bold;
		color: #111111;
		margin-bottom: 30rpx;
	}
	.avatar {
		width: 80rpx;
		height: 79rpx;
		background-color: #eee;
		border-radius: 50%;
		margin-right: 22rpx;
	}
	.user {
		padding: 40rpx 0;
	}
	.info {
		height: 79rpx;
	}
	.name {
		font-size: 28rpx;
		font-weight: bold;
		color: #333333;
		line-height: 11rpx;
		margin-right: 9rpx;
	}
	.phone {
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #333333;
	}
	.time{
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #333333;
	}
</style>
